﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="../images/favicon.ico">
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script>


<!-- 文件上传需要的样式 -->

<link rel="stylesheet" type="text/css"
	href="${path }/resource/plugin/kindeditor/themes/default/default.css" />
<link rel="stylesheet" type="text/css"
	href="${path }/resource/plugin/kindeditor/plugins/code/prettify.css" />
<script type="text/javascript"
	src="${path }/resource/plugin/kindeditor/kindeditor.js"></script>
<script type="text/javascript"
	src="${path }/resource/plugin/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript"
	src="${path }/resource/plugin/kindeditor/plugins/code/prettify.js"></script>

<title></title>
</head>

<nav class="huiNav">
		<i class="fa fa-home"></i> 首页 <span>&gt;</span>系统管理<span>&gt;</span><a href="${path}/admin/functionRedirect/project-list/22">项目列表</a>
		&gt;<a href="${path}/admin/projectInfo/sonManager?id=${obj.id}"><span>${obj.projName }</span></a>
		<a class="btn btn-info  btn-sm pull-right"
			href="javascript:location.replace(location.href);" title="刷新"><i
			class="fa fa-refresh"></i></a>
	</nav>
<jsp:include page="proj-manager-son.jsp"></jsp:include>
<script type="text/javascript">
	$('.datetimepicker').datetimepicker({
		format : "yyyy-mm-dd",
		startView : 2,
		maxView : 3,
		minView : 2
	});
	var myForm = MForm.initForm({
		invokeUrl : "${path}/admin/project/addOrModify",
	});

	//绑定点击事件
	$("#img_1").click(function() {
		$("#fileText").trigger("click");
	});

	//检测文件改变事件
	function fileChange() {
		if ($("#fileText").val() == '') {
			return;
		}
		$("#img_1").attr("src", basePath + "/resource/images/loadingbig.gif");
		$("#submitBtn").trigger("click");
	}

	/**
	 开始上传图片
	 **/
	function setPhoto() {
		console.log('开始上传图片');
		$("#photo").val($('#img_1').attr('src'));
	}
</script>
</body>
</html>